<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<div class="panel-body"> 
    <form class="form-horizontal" id="productPriceMng" action="" method="post">
	    <div class='form-group'>
	  	        <label for='type' class='col-sm-offset-1 col-sm-2 control-label'>价格类型：</label>
			    <div class='col-sm-2'>
			        <input type="text" class='form-control' readonly="readonly" value="最低价">
	    	    </div>
						    
			    <label for='price' class=' col-sm-2 control-label'>商品价格：</label>
			    <div class='col-sm-2'>
					<input type='text' class='form-control' name="productPriceList[0].price" readonly="readonly" value="<s:iterator value='#pp'><c:if test='${type ==1 }'>${price }</c:if></s:iterator>">
			    </div>
		  </div> 
		  
		  <div class='form-group'>
	  	        <label for='type' class='col-sm-offset-1 col-sm-2 control-label'>价格类型：</label>
			    <div class='col-sm-2'>
			        <input type="text" class='form-control' readonly="readonly" value="最高价">
	    	    </div>
						    
			    <label for='price' class='col-sm-2 control-label'>商品价格：</label>
			    <div class='col-sm-2'>
					<input type='text' class='form-control' name="productPriceList[1].price" readonly="readonly" value="<s:iterator value='#pp'><c:if test='${type ==2 }'>${price }</c:if></s:iterator>">
			    </div>
		  </div> 
		  
		  <div class='form-group'>
	  	        <label for='type' class='col-sm-offset-1 col-sm-2 control-label'>价格类型：</label>
			    <div class='col-sm-2'>
			        <input type="text" class='form-control' readonly="readonly" value="畅销价">
	    	    </div>
						    
			    <label for='price' class='col-sm-2 control-label'>商品价格：</label>
			    <div class='col-sm-2'>
					<input type='text' class='form-control' name="productPriceList[2].price" readonly="readonly" value="<s:iterator value='#pp'><c:if test='${type ==3 }'>${price }</c:if></s:iterator>">
			    </div>
		  </div> 
		  
		  
<!-- 		  <div class="form-group" id="addButton">
		    <div class="col-sm-offset-5 col-sm-7">
		      <input type="button" value="保存" id="saveId" class="btn btn-default" onclick="submitForm(3)">
		    </div>
		 </div>	   -->
    </form>
</div>	  
    
    
    
    
    
    
    
    
    
    
    
<%--  <c:if test="${empty method }">
<div class="panel-body"> 
   <form class="form-horizontal" id="defaultForm" action="" method="post">
	       
	 <input type="hidden" value="1" id="num">
	       
	 <div class="form-group" id="addButton">
	    <div class="col-sm-offset-5 col-sm-7">
	      <input type="button" value="保存" id="saveId" class="btn btn-default" style="display: none;" onclick="submitForm(3)">
	      <input type="button" class="btn btn-default" onclick="addPrice(this)" value="添加价格">
	    </div>
	 </div>
	</form>
</div>
</c:if> 

<c:if test="${!empty method }">
<div class="panel-body"> 
   <form class="form-horizontal" id="defaultForm" action="" method="post">
	       
	 <input type="hidden" value="1" id="num">
	 
	 <s:iterator value="#pp"  status="index">
	 <div class='form-group' id=${index.index }>
  	        <label for='type' class='col-sm-offset-1 col-sm-2 control-label'>价格类型：</label>
		    <div class='col-sm-2'>
		        <input type="text" class='form-control' readonly="readonly" value="<c:if test="${type ==1 }">最低价</c:if><c:if test="${type ==2 }">最高价</c:if><c:if test="${type ==3 }">畅销价</c:if>">
    	    </div>
					    
		    <label for='price' class='col-sm-2 control-label'>商品价格：</label>
		    <div class='col-sm-2'>
				<input type='text' class='form-control' readonly="readonly" value="${price }">
		    </div>
		    
		    <div class='col-sm-2'>
			    <input type='button' class='btn btn-default' onclick="editPrice('${id }','${type}','${price }','${index.index }')" value='编辑'>
			    <input type='button' class='btn btn-default' onclick="deletePrice(this,'${id }')" value='删除'>
		    </div>
	  </div>  
	  </s:iterator>
	 
	 <div class="form-group" id="addButton">
	    <div class="col-sm-offset-5 col-sm-7">
	      <input type="button" value="保存" id="saveId" class="btn btn-default" style="display: none;" onclick="submitForm(3)">
	      <input type="button" class="btn btn-default" onclick="addPrice(this)" value="添加价格">
	    </div>
	 </div>
	</form>
</div>
</c:if> --%>
